//------------------------------------------------------------------------------
//  Texture.cpp
//  (C) 2009 xoyojank
//------------------------------------------------------------------------------
#include "StdEddy.h"
#include "Graphics/Texture.h"

//------------------------------------------------------------------------------
namespace Eddy
{

//------------------------------------------------------------------------------
Texture::Texture()
    : type(Texture2D)
    , format(Unknown)
    , width(0)
    , height(0)
    , numMipLevels(0)
{
    glGenTextures(1, &this->texture);
}

//------------------------------------------------------------------------------
Texture::~Texture()
{
    glDeleteTextures(1, &this->texture);
}

}// Eddy
